<?php
if (! defined ( 'BASEPATH' ))
exit ( 'No direct script access allowed' );

class MY_Form_validation extends CI_Form_validation {
	public $CI;

	function MY_Form_validation() {
		parent::CI_Form_validation ();
		$this->CI = & get_instance ();
	}

	function greather_than($str, $field){
		if ( ! isset($_POST[$field])){
			return FALSE;
		}
		$field = $_POST[$field];
		if ($str < $field){
			$this->CI->form_validation->set_message('greather_than', 'The %s can be grather tahn '.$field);
			return FALSE;
		}
		else{
			return TRUE;
		}
	}
}
